{notempty name="admintips"}
<!--24小时不再提示 开始-->
<script type="text/javascript">
// 弹出对话框
$(document).ready(function(){
    if(cookieget('bmkj_closetips')!='yes'){
        var tips_href = '{:url('/index/editadminfile',['lang'=>$lang])}';
        $('#modal_content').load(tips_href);
        $('#modal').modal("show");
    }
});

// 获取cookie
function cookieget(n){
    var name = n + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i<ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
    }
    return "";
}

// 不再提示
function closetips(){
    $('#modal').modal("hide");
    var n = 'bmkj_closetips';
    var v = 'yes';
    var mins = 60 * 24;
    var dn = '';
    var path = "/";
    var date = new Date();
    date.setTime(date.getTime() + (mins * 60 *1000));
    var expires = "; expires=" + date.toGMTString();
    if(dn) dn = "domain=" + dn + "; ";
    document.cookie = n + "=" + v + expires + "; " + dn + "path=" + path;
}
</script>
<!--24小时不再提示 结束-->
{/notempty}